﻿
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Caching;
using ABC.Business.Models;
using ABC.Core.Configuration;
using ABC.Domain.Enums;

namespace ABC.Controllers.ViewModels.My
{
    public class MyViewModel : BaseViewModel
    {
        public double CourseUSDToday { get; set; }

        public double CourseUSDTommorow { get; set; }

        public double CourseEURToday { get; set; }

        public double CourseEURTommorow { get; set; }

        public List<Domain.Entities.News> News { get; set; }

        public List<Domain.Entities.News> Actions { get; set; }

        public MyViewModel()
        {
            var toolbarModel = IoC.Resolve<ToolbarModel>();
            string[] courses = toolbarModel.GetCourse();
            CourseUSDToday = Double.Parse(courses[0]);
            CourseUSDTommorow = Double.Parse(courses[1]);
            CourseEURToday = Double.Parse(courses[2]);
            CourseEURTommorow = Double.Parse(courses[3]);
            News = new List<Domain.Entities.News>();
            Actions = new List<Domain.Entities.News>();
        }
    }
}
